package Month07.day03;

import java.util.Scanner;

public class array5 {
    public static void main(String[] args) {
        int[] ints = new int[]{19, 28, 37, 46, 50};
        Scanner scanner = new Scanner(System.in);
        System.out.println("在下面输入你想查找的数字！！");
        int sb = scanner.nextInt();
        int index = -1;
        for (int i = 0; i < ints.length; i++) {
            if (ints[i] == sb) {
                index = i;
        System.out.println("这个数字在第" + (index + 1) + "个上");
                break;
            }else {
                System.out.println("nope");
                break;
            }
        }
    }
}
